For this first document we will look at the mpg dataset included with the tidyverse package.

Here’s a glimpse of the dataset:

manufacturer model displ year cyl trans drv cty hwy fl class
audi a4 1.8 1999 4 auto(l5) f 18 29 p compact
audi a4 1.8 1999 4 manual(m5) f 21 29 p compact
audi a4 2.0 2008 4 manual(m6) f 20 31 p compact
audi a4 2.0 2008 4 auto(av) f 21 30 p compact
audi a4 2.8 1999 6 auto(l5) f 16 26 p compact
audi a4 2.8 1999 6 manual(m5) f 18 26 p compact

##Plots

Highway miles per gallon

Cars with more displacement have lower MPG

##Models

Our model formula is :

## hwy ~ displ * cyl
Model Output Table
term estimate std.error statistic p.value
(Intercept) 52.1928281 3.1335086 16.656354 0.0e+00
displ -7.4868606 1.2748407 -5.872781 0.0e+00
cyl -3.3404679 0.5804511 -5.754951 0.0e+00
displ:cyl 0.7558866 0.1605469 4.708198 4.3e-06

TO learn more about the exciting dataset plaese visit THIS WEBSITE

reads html code out here